package com.weijianhuawen.wjblog.web.controller;

import com.weijianhuawen.wjblog.common.aspect.ApiOperationLog;
import com.weijianhuawen.wjblog.common.utils.Response;
import com.weijianhuawen.wjblog.web.service.StatisticsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version: java version 8
 * @Author: weijianhuawen
 * @description: 数据分析 前台接口
 * @date: 2024-11-03 23:46
 */

@RestController
@RequestMapping("/statistics")
@Api(tags = "数据统计模块")
public class StatisticsController {
    @Autowired
    private StatisticsService statisticsService;

    @GetMapping("/info")
    @ApiOperation(value = "统计基本的数据")
    @ApiOperationLog(description = "统计文章 分类 标签 pv总量")
    public Response FindStatisticsInfo() {
        return statisticsService.findStatisticsInfo();
    }
}
